package com.dq.health.enums;

/**
 * <公告状态>
 *
 * @Author: chenxin
 * @Date: 2021/5/12
 */
public enum NoticeStatusEnum {

    WAIT(0, "待发布"),

    PUSHED(1, "已发布"),

    DELETE(2, "已删除");

    private int value;

    private String desc;

    NoticeStatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int value() {
        return value;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static NoticeStatusEnum parse(int value) {
        for (NoticeStatusEnum e : NoticeStatusEnum.values()) {
            if (e.getValue() == value) {
                return e;
            }
        }
        return null;
    }

}
